package com.qf.mrmd.result;

public class ResponseData {

    private String ecode;
    private String info;
    private Object data;
    private Integer count;

    public ResponseData(Object  data) {
        this.ecode = ResponseCode.SUCCESS.getEcode();
        this.data = data;
    }

    public ResponseData(String ecode, String info, Object data) {
        this.ecode = ecode;
        this.info = info;
        this.data = data;
    }

    public ResponseData(String ecode, String info, Object data,Integer count) {
        this.ecode = ecode;
        this.info = info;
        this.data = data;
        this.count = count;
    }


    public ResponseData(ResponseCode responseCode, Object data) {
        this.ecode = responseCode.getEcode();
        this.info = responseCode.getInfo();
        this.data = data;
    }

    public ResponseData(String ecode, String info) {
        this.ecode = ecode;
        this.info = info;
    }

    public ResponseData(ResponseCode responseCode){
        this.ecode = responseCode.getEcode();
        this.info = responseCode.getInfo();
    }


    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
